import service from '@/utils/crmRequest'

export default () => ({
  // 保证金列表
  CASH_DEPOSIT_LIST: (data) => {
    return service({
      url: '/api/margin/list',
      method: 'post',
      data
    })
  },
  // 保证金创建
  CASH_DEPOSIT_CREATE: (data) => {
    return service({
      url: '/api/margin/create',
      method: 'post',
      data
    })
  },
  // 保证金作废
  CASH_DEPOSIT_OBSOLETE: (params) => {
    return service({
      url: '/api/margin/invalid',
      method: 'put',
      params
    })
  },
})
